package com.seari.service;

import java.text.ParseException;
import java.util.List;
import java.util.Map;

import com.seari.bean.FaultInfo;
import com.seari.bean.FaultNum;
import com.seari.bean.FlowMajor;
import com.seari.bean.FlowText;
import com.seari.bean.PictureInfo;
import com.seari.bean.User;

public interface FaultService {
	
	public FaultNum getFaultNum();
	
	public FaultInfo getRtFaultInfoById(String faultId);
	
	public FaultInfo getHisFaultInfoById(String faultId);
	
	public List<FaultInfo> getResolveRtFaultListInfo();
	
	public List<FaultInfo> getResolveHisFaultListInfo(Map<String, Object> mapIn);
	
	public List<FaultInfo> getUnResolveRtFaultListInfo();
	
	public List<FaultInfo> getUnResolveHisFaultListInfo(Map<String, Object> mapIn);
	
    public List<FaultInfo> getQueryhistoryFaultListInfo(Map<String, Object> mapIn) ;
	
	public FaultInfo getRtFaultInfoByIdFromFlow(String faultId);
	
	public List<FaultInfo> getTodayFaultInfoFromOracle();
	
	public List<FaultInfo> getTodayFaultInfoFromMysql();
	
	public void addOrUpdateFaultInfoToMysql(List<FaultInfo> faultInfoList);
	
	public List<PictureInfo> getFaultPictureListInfo(String faultId);
	
    public Map<String,Object> faultProcessingFlowInfoById(String faultId);
    
    public List<User> getHanderFaultUserInfo(String faultId);
    
    public List<FlowMajor> getFlowMajorStatu(String faultId,String tag);

    public List<FlowMajor> getFlowMajorAll(String faultId);

    public List<Integer> getFlowAllMajor(String faultId);
    
    /**
     * 处置时间差值
     * @param faultId
     * @return
     */
    public Integer getDisposeTimeDiff(String faultId);
    /**
     * 响应时间差值
     * @param faultId
     * @return
     */
    public Integer getAnswerTimeDiff(String faultId);

    Map<String, Object> getFaultDisposeTime(String faultId);

	Map<String, Object> getFaultRDTime(String faultId);
	
    public List<FlowText> getFaultPlanShow(Map<String, String> map);
}
